package game.entity.terrain;

import java.util.regex.Pattern;

import game.entity.Terrain;
import game.room.Room;

/** */
public class Wall extends Terrain {
	@Override
	public final boolean validatePosition(final Room room, final int layer,
		final int row, final int col) {
		return Pattern.compile("[WT]{9}").matcher(
			room.getTerrainString(layer - 1, row - 1, col - 1, layer - 1,
				row + 1, col + 1)).find();
	}
}
